![]() |
PBWriteForkAsync |
||||
Header: | Files.h | Carbon status: | Supported | |
Writes data to an open fork.
void PBWriteForkAsync ( FSForkIOParam *paramBlock );
A pointer to a parameter block
The relevant fields of the parameter block are:
On input, a pointer to a completion routine.
On output, the result code of the function. If there is not enough space on the volume to write requestCount bytes, then dskFulErr is returned.
On input, the reference number of the fork to write to.
On input, the base location for the start of the write. The caller can hint to the File Manager whether the data being written should or should not be cached. Set the appropriate bits in positionMode. See
On input, the offset from base location for the start of the write.
On input, the number of bytes to write.
A pointer to the data toe write.
On output, the number of bytes actually written. This parameter is optional; if you don’t want it, set actualCount to NULL. The actualCount should be equal to requestCount unless there was an error during the read operation.
Data is written starting at the position specified by positionMode and positionOffset. The call will attempt to write requestCount bytes from the buffer pointed at by the buffer parameter.
The fork’s current position is set to point immediately after the last byte written (that is, the initial position plus actualCount).
You can open the fork using the FSOpenFork call.
Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)